package net.hn.hnms.biz.safety.monitor.repository;

import net.hn.hnms.biz.safety.monitor.domain.SensorAlarmEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * 智呈物联 pan'sx
 * 2022/8/30 10:14
 * 1.0 version
 */
@Repository
public interface SensorAlarmEntityRepository extends JpaRepository<SensorAlarmEntity,Long> {
    /**
     * 时间区间查询
     * @param pointCode
     * @param beginTime
     * @param endTime
     * @return
     */
    List<SensorAlarmEntity> findByPointCodeAndDataTimeBetweenOrderByDataTime(String pointCode, Date beginTime, Date endTime);
    List<SensorAlarmEntity> findByPointCodeAndDataTimeBetweenAndMineCodeOrderByDataTime(String pointCode, Date beginTime, Date endTime,String mineCode);
}
